// 管理员路由
export const adminRouter: any = {
  home: 'dashboard_analysis',
  routes: [
    {
      name: 'dashboard',
      path: '/dashboard',
      component: 'basic',
      children: [
        {
          name: 'dashboard_analysis',
          path: '/dashboard/analysis',
          component: 'self',
          meta: {
            title: '分析页',
            requiresAuth: true,
            icon: 'icon-park-outline:analysis',
          }
        }
      ],
      meta: {
        title: '仪表盘',
        icon: 'mdi:monitor-dashboard',
        order: 1,
      }
    },
    {
      name: 'user-detail',
      path: '/user-detail',
      component: 'basic',
      children: [
        {
          name: 'user-detail_list',
          path: '/user-detail/list',
          component: 'self',
          meta: {
            title: '用户明细',
            requiresAuth: true,
            icon: 'noto-v1:person-in-tuxedo-light-skin-tone',
          }
        },
        {
          name: 'user-detail_details',
          path: '/user-detail/details',
          component: 'self',
          meta: {
            title: '运营数据',
            requiresAuth: true,
            icon: 'eos-icons:ai-operator',
            hide: true
          }
        },
        {
          name: 'user-detail_particulars',
          path: '/user-detail/particulars',
          component: 'self',
          meta: {
            title: '明细',
            requiresAuth: true,
            icon: 'openmoji:bookmark-tabs',
            hide: true
          }
        },
      ],
      meta: {
        title: '用户明细',
        icon: 'noto-v1:person-in-tuxedo-light-skin-tone',
        order: 1,
      }
    },
    {
      name: 'statistics',
      path: '/statistics',
      component: 'basic',
      children: [
        {
          name: 'statistics_list',
          path: '/statistics/list',
          component: 'self',
          meta: {
            title: '数据统计',
            requiresAuth: true,
            icon: 'academicons:dataverse-square',
          }
        },
        {
          name: 'statistics_details',
          path: '/statistics/details',
          component: 'self',
          meta: {
            title: '数据详情',
            requiresAuth: true,
            icon: 'academicons:dataverse-square',
            hide: true
          }
        },
        {
          name: 'statistics_particulars',
          path: '/statistics/particulars',
          component: 'self',
          meta: {
            title: '明细',
            requiresAuth: true,
            icon: 'openmoji:bookmark-tabs',
            hide: true
          }
        },
      ],
      meta: {
        title: '数据统计',
        icon: 'academicons:open-data',
        order: 1,
      }
    },
    {
      name: 'financial',
      path: '/financial',
      component: 'basic',
      children: [
        {
          name: 'financial_list',
          path: '/financial/list',
          component: 'self',
          meta: {
            title: '财务数据',
            requiresAuth: true,
            icon: 'cib:civicrm',
          }
        },
        {
          name: 'financial_details',
          path: '/financial/details',
          component: 'self',
          meta: {
            title: '数据详情',
            requiresAuth: true,
            icon: 'cib:civicrm',
            hide: true
          }
        },
        {
          name: 'financial_tixian',
          path: '/financial/tixian',
          component: 'self',
          meta: {
            title: '提现记录',
            requiresAuth: true,
            icon: 'emojione:money-bag',
          }
        },
      ],
      meta: {
        title: '财务',
        icon: 'map:accounting',
        order: 1,
      }
    },
    {
      name: 'management',
      path: '/management',
      component: 'basic',
      children: [
        {
          name: 'management_role',
          path: '/management/role',
          component: 'self',
          meta: {
            title: '角色管理',
            requiresAuth: true,
            icon: 'ic:round-manage-accounts'
          }
        },
        {
          name: 'management_user',
          path: '/management/user',
          component: 'self',
          meta: {
            title: '用户管理',
            requiresAuth: true,
            icon: 'pepicons-print:persons'
          }
        }
      ],
      meta: {
        title: '系统管理',
        icon: 'carbon:cloud-service-management',
        order: 9
      }
    }
  ]
};


// 分销商路由
export const distributionRouter: any = {
  home: 'dashboard_analysis',
  routes: [
    {
      name: 'dashboard',
      path: '/dashboard',
      component: 'basic',
      children: [
        {
          name: 'dashboard_analysis',
          path: '/dashboard/analysis',
          component: 'self',
          meta: {
            title: '分析页',
            requiresAuth: true,
            icon: 'icon-park-outline:analysis',
            i18nTitle: 'routes.dashboard.analysis'
          }
        }
      ],
      meta: {
        title: '仪表盘',
        icon: 'mdi:monitor-dashboard',
        order: 1,
        i18nTitle: 'routes.dashboard._value'
      }
    },
    {
      name: "playlet",
      path: "/playlet",
      component: "basic",
      children: [
        {
          name: 'playlet_list',
          path: '/playlet/list',
          component: 'self',
          meta: {
            title: '短剧列表',
            requiresAuth: true,
            icon: 'icon-park:tree-list'
          }
        }
      ],
      meta: {
        title: '短剧库',
        icon: 'icon-park:tv-one',
        order: 9
      }
    },
    {
      name: "popularize",
      path: "/popularize",
      component: "basic",
      children: [
        {
          name: 'popularize_list',
          path: '/popularize/list',
          component: 'self',
          meta: {
            title: '推广链接',
            requiresAuth: true,
            icon: 'icon-park:nine-points-connected'
          }
        },
        {
          name: 'popularize_particulars',
          path: '/popularize/particulars',
          component: 'self',
          meta: {
            title: '数据详情',
            requiresAuth: true,
            icon: 'openmoji:bookmark-tabs',
            hide: true
          }
        }
      ],
      meta: {
        title: '我要推广',
        icon: 'icon-park:trumpet',
        order: 9
      }
    },
    {
      name: "statistics-tgs",
      path: "/statistics-tgs",
      component: "basic",
      children: [
        {
          name: 'statistics-tgs_list',
          path: '/statistics-tgs/list',
          component: 'self',
          meta: {
            title: '数据统计',
            requiresAuth: true,
            icon: 'academicons:dataverse-square'
          }
        },
        {
          name: 'statistics-tgs_particulars',
          path: '/statistics-tgs/particulars',
          component: 'self',
          meta: {
            title: '数据详情',
            requiresAuth: true,
            icon: 'openmoji:bookmark-tabs',
            hide: true
          }
        }
      ],
      meta: {
        title: '数据统计',
        icon: 'academicons:open-data',
        order: 9
      }
    },
    {
      name: 'financial-tgs',
      path: '/financial-tgs',
      component: 'basic',
      children: [
        {
          name: 'financial-tgs_list',
          path: '/financial-tgs/list',
          component: 'self',
          meta: {
            title: '财务数据',
            requiresAuth: true,
            icon: 'cib:civicrm',
          }
        },
        {
          name: 'financial-tgs_details',
          path: '/financial-tgs/details',
          component: 'self',
          meta: {
            title: '数据详情',
            requiresAuth: true,
            icon: 'cib:civicrm',
            hide: true
          }
        }
      ],
      meta: {
        title: '财务',
        icon: 'map:accounting',
        order: 1,
      }
    }
  ]
};
